import request from '@/utils/request.js'

export const getStudentPageService = () => {
    return request({
        url: '/student',
        method: 'get',
    })
}

export const addStudentService = (data) => {
    return request({
        url: '/student',
        method: 'post',
        data: data
    })
}

export const updateStudentService = (data) => {
    return request({
        url: '/student',
        method: 'put',
        data: data
    })
}

export const deleteStudentService = (id) => {
    return request({
        url: '/student',
        method: 'delete',
        params: {
            id
        }
    })
}